<?php

namespace App\Models;

//use Illuminate\Notifications\Notifiable;
//use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Database\Eloquent\Model;
//class User extends Authenticatable
class User extends Model
{

    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = [
        'name', 'username','mobile','email', 'password',
    ];

    /**
     * The attributes that should be hidden for arrays.
     *
     * @var array
     */
    protected $hidden = [
        'remember_token','password'
    ];
    /**
     * @param \DateTime|int $value
     * @return false|int
     * @author dividez
     * @url https://tiicle.com/items/55/laravel-timestamps-is-set-to-a-unix-timestamp
     */
//    public function fromDateTime($value){
//        return strtotime(parent::fromDateTime($value));
//    }
}